package com.hrhr74.penguinstream.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hrhr74.penguinstream.domain.dto.AddressDTO;
import com.hrhr74.penguinstream.domain.po.Address;
import com.hrhr74.penguinstream.domain.vo.AddressVO;
import com.hrhr74.penguinstream.utils.Result;

import java.util.List;

public interface IAddressService extends IService<Address> {
    Result<Void> saveAddress(AddressDTO addressDTO);

    Result<List<AddressVO>> listAddress(Long userId);

    Result updateAddress(AddressDTO addressDTO);

    Result setDefault(Long addressId);

    Result deleteById(Long addressId);

    Result<AddressVO> getDefaultAddress();
}
